package com.itany.cloud.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author 石小俊
 */
@Data
@TableName("t_user")
@Schema(title = "用户实体类",description = "用户表所映射的实体类")
public class User {
    @Schema(title = "id",description = "用户id,主键字段")
    @TableId(type = IdType.AUTO)
    private Integer id;
    @Schema(description = "用户名")
    private String username;
    @Schema(description = "密码")
    private String password;
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "用户状态。1:可用 2:已注销")
    private Integer status;
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "用户的创建时间")
    private LocalDateTime createTime;
}
